package com.xinruke.hostels.reservation.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName RoomReservationInfoDto
 * @date：2019/6/13
 * @version: V1.0.0
 * @description：
 */
@ApiModel("预订房间信息结果DTO")
@Data
public class RoomOrderInfoQueryResultDto {



    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Integer shuliang;

    /**
     * 房型标准价
     */
    @ApiModelProperty("房型标准价")
    private BigDecimal mendianjia;
    /**
     * 优惠价
     */
    @ApiModelProperty(value = "房间优惠金额",required = true)
    @NotNull(message = "房间优惠金额不能为空")
    private BigDecimal youhuijia;
    /**
     * 房间缩略图
     */
    @ApiModelProperty(value = "房间缩略图")
    private String suoluetu;

    /**
     * 预订姓名
     */
    @ApiModelProperty(value = "预订姓名")
    private String yudingxingming;

    /**
     * 预订人证件号
     */
    @ApiModelProperty(value = "预订人证件号")
    private String yudingrenzhengjianhao;

    /**
     * 入住性质:1因公；2因私
     */
    @ApiModelProperty(value = "入住性质:1因公；2因私")
    private Byte ruzhuxingzhi;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String lianxidianhua;
    /**
     * 入住时间
     */
    @ApiModelProperty(value = "入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ruzhushijian;

    /**
     * 离开时间
     */
    @ApiModelProperty(value = "离开时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date likaishijian;


}
